<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>认证管理</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :inline="true" :form="form">
      <el-form-item>
        <el-select placeholder="请选择认证类型" clearable filterable v-model.trim="form.Enterprise_Type">
          <el-option label="个人商家" value="0"></el-option>
          <el-option label="企业商家" value="1"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSerach">查询</el-button>
      </el-form-item>
    </el-form>

    <el-table :data="tableData" stripe border height="calc(100vh - 140px)" style="width: 100%">
      <el-table-column label="序号" width="50" type="index"></el-table-column>
      <el-table-column prop="" label="营业执照">
        <template v-slot="{row}">
          <el-image style="width: 100px; height: 100px; border-radius: 9px;"
                  class="el-upload-list__item-thumbnail" :src="Domain_Business + row.Picture_URL" :preview-src-list="[Domain_Business + row.Picture_URL]" fit="contain"></el-image>
        </template>
      </el-table-column>
      <el-table-column prop="Enterprise_Name" label="企业名称">
        <template v-slot="{row}">
          <div :title="row.Enterprise_Name" style="white-space: nowrap;text-overflow: ellipsis;overflow: hidden;">
            <span>{{row.Enterprise_Name}}</span>
          </div>
        </template>
      </el-table-column>
      <el-table-column label="企业地址">
        <template v-slot="{row}">
          <div :title="row.Enterprise_Address" style="white-space: nowrap;text-overflow: ellipsis;overflow: hidden;">
            <span>{{row.Enterprise_Address}}</span>
          </div>
        </template>
      </el-table-column>
      <el-table-column prop="Legal_Person" label="法人姓名"></el-table-column>
      <el-table-column prop="Bank_Name" label="所属银行"></el-table-column>
      <el-table-column prop="Account_Name" label="银行账户名称"></el-table-column>
      <el-table-column prop="Tax_Number" label="社会统一信用代码"></el-table-column>
      <el-table-column label="申请类别">
        <template v-slot="{row}">
            <span>{{row.Enterprise_Type=='1'?'企业商户':'个体商户'}}</span>
        </template>
      </el-table-column>
      <el-table-column prop="User_Number" label="管理员账号"></el-table-column>
      <el-table-column prop="ID_Name" label="管理员"></el-table-column>
      <el-table-column label="操作" width="180">
        <template v-slot="{row}">
          <el-button type="primary" :loading="loading" size="small" @click="agree(row,0)">通过
          </el-button>
          <el-button type="danger" :loading="loading" size="small" @click="agree(row,1)">拒绝</el-button>
        </template>
      </el-table-column>
    </el-table>

    <el-pagination background v-show="total > 0" @size-change="handleSizeChange" @current-change="handleCurrentChange"
      :current-page="form.page" :page-sizes="[10, 20, 30, 50]" :page-size="form.limit"
      layout="total, sizes, prev, pager, next, jumper" :total="total">
    </el-pagination>
  </div>
  <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../js/utils.js"></script>
  <script type="text/javascript" src="./js/Authentication.js"></script>
</body>

</html>